package com.asj.house.interceptor;

import org.springframework.web.servlet.HandlerInterceptor;

public class ForceLoginInterceptor implements HandlerInterceptor {
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//
//        HttpSession session = request.getSession();
//
//        User user = (User) session.getAttribute(SessionEnum.USER.getCode());
//
//        if(Objects.isNull(user)){
//            response.sendRedirect("login.html");
//            return false;
//        }
//
//        return true;
//    }
}
